package com.wang.mall.feign;

import com.wang.mall.bean.UmsMemberReceiveAddress;
import com.wang.mall.config.feign.Auth2FeignConfig;
import com.wang.mall.model.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "user-server", configuration = Auth2FeignConfig.class)
public interface UserFeignService {

    @GetMapping("/address/getByMemberId")
    public R<List<UmsMemberReceiveAddress>> getByMemberId(@RequestParam("memberId") Long memberId);


    @GetMapping("/address/address/getId")
    public R<UmsMemberReceiveAddress> getId(@RequestParam("addrId") Long addrId);

}
